package com.niuwa.p2p.dao.fund;

import java.util.List;
import java.util.Map;

import com.niuwa.p2p.dao.MyBatisDao;
import com.niuwa.p2p.entity.fund.AcctApply;
@MyBatisDao
public interface AcctApplyDao {
    int deleteByPrimaryKey(String applyNo);

    int insert(AcctApply record);

    int insertSelective(AcctApply record);

    AcctApply selectByPrimaryKey(String applyNo);

    int updateByPrimaryKeySelective(AcctApply record);

    int updateByPrimaryKey(AcctApply record);
    
    /**
     * 选择账户申请列表
     * @return
     */
    List<AcctApply> selectAcctApplyList(Map map);
    /**
     * 获取申请账号记录条数
     * @param map
     * @return
     */
    int getAcctApplyCount(Map map);
    
    /**
     * 更改待审核记录状态
     * @param applyStatus
     * @param applyNo
     * @return
     */
    int updateStatus(Map map);
}